package com.baichang.taoshunda.service;

import com.baichang.framework.excelption.ServiceException;

import java.util.List;
import java.util.Map;

/**
 * Created by ${wushenglu} on 2018/3/12.
 */
public interface BackgroundImageService {
    /**
     * @param userId
     * @param backGroundImage
     * @return
     */
    boolean addBackGroundImage(Integer userId, String backGroundImage);

    /**
     * 查询用户的背景图列表
     *
     * @param userId
     * @param nowPage
     * @param pageSize
     * @return
     */
    List<Map<String, Object>> findBackGroundImageList(Integer userId, Integer nowPage, Integer pageSize);

    /**
     *
     * @return
     */
    List<Map<String, Object>> queryImage();

    /**
     *
     * @param picture
     * @return
     */
    long addImage(String picture) throws ServiceException;

    /**
     *
     * @param id
     * @return
     */
    int deletePic(Integer id);
}
